<template>
  <div id="app">
    <router-view />
    <!--<Nav/>-->
  </div>
</template>

<script>
import Nav from './components/Nav'

export default {
  name: 'App',
  components: {
    Nav
  },
  mounted(){
    window.addEventListener('unload',this.saveState)
  },
  methods: {
    saveState() {
      sessionStorage.setItem('state', JSON.stringify(this.$store.state.company));
    }
  }
}
</script>

<style>

</style>
